package com.chwn.curiousdiary.bean;

import java.io.Serializable;

/**
 * Created by Myshikin on 2017/3/24.
 * 消息
 * ---messageTime	messageTime	string
 * ---消息类型	messageType	string
 * ---消息id	 messageId	string
 * ---消息内容	messageContent	string
 * ---阅读情况	readflag	number	0 未读 1 已读
 */
public class MessageBean implements Serializable {

    private String messageTime;

    private String messageType;

    private String messageId;

    private String messageContent;

    private int readflag;

    public MessageBean() {
    }

    public MessageBean(String messageURL, String messageTime, String messageContent) {
        this.messageURL = messageURL;
        this.messageTime = messageTime;
        this.messageContent = messageContent;
    }

    public MessageBean(boolean isDate, String messageTime) {
        this.isDate = isDate;
        this.messageTime = messageTime;
    }

    /**
     * 消息URL
     */
    private String messageURL;

    @Override
    public String toString() {
        return "MessageBean{" +
                "messageTime='" + messageTime + '\'' +
                ", messageType='" + messageType + '\'' +
                ", messageId='" + messageId + '\'' +
                ", messageContent='" + messageContent + '\'' +
                ", readflag=" + readflag +
                ", isDate=" + isDate +
                '}';
    }

    public String getMessageURL() {
        return messageURL;
    }

    public void setMessageURL(String messageURL) {
        this.messageURL = messageURL;
    }

    public String getMessageTime() {
        return messageTime;
    }

    public void setMessageTime(String messageTime) {
        this.messageTime = messageTime;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public int getReadflag() {
        return readflag;
    }

    public void setReadflag(int readflag) {
        this.readflag = readflag;
    }

    /**
     * 自添加字段 ---- 为了实现多布局的消息列表
     */
    private boolean isDate = false;

    public void setDate(boolean date) {
        isDate = date;
    }

    public boolean isDate() {
        return isDate;
    }

    public String getDate() {
        return messageTime;
    }
}
